package com.shop.cereshop.app.dl.logic.service;

import com.shop.cereshop.app.dl.logic.domian.CereBuyerUser;
import com.shop.cereshop.app.dl.logic.domian.MyAccount;
import com.shop.cereshop.commons.domain.order.CereShopOrder;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author: 况鑫威
 * @Date: 2021/6/15
 * @Time: 17:49
 * @ClassName: DlCereBuyerUserService
 * @Description: com.shop.cereshop.app.dl.logic.service
 */
public interface DlCereBuyerUserService {
    int deleteByPrimaryKey(Long buyerUserId);

    int insert(CereBuyerUser record);

    int insertSelective(CereBuyerUser record);

    CereBuyerUser selectByPrimaryKey(Long buyerUserId);

    int updateByPrimaryKeySelective(CereBuyerUser record);

    int updateByPrimaryKey(CereBuyerUser record);

    Boolean phoneBinding(@Param("wechatOpenId") String wechatOpenId, @Param("phone") String phone, @Param("code") String code);

    Boolean registerVoluntarily(String wechatOpenId, String headImage, String wechatName, String wechatNumber);

    Boolean getUserOpenId(String wechatOpenId);

    MyAccount getMyAccount(Long buyerUserId);

    List<CereShopOrder> getCoupons(Long cereBuyerUserId);
}
